package com.jiankangjin.transsystem.common;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class CommonResponse {
	
	private static final Log logger = LogFactory.getLog(CommonResponse.class);

	public static Map<String,Object> formatErrorResult(String errorCode, String errorMsg){
		logger.error(errorMsg);
		Map<String, Object> result = new HashMap<String, Object>();
		result.put(Constant.RESP_PARAM_STAT, errorCode);
		result.put(Constant.RESP_PARAM_MSG, errorMsg);
		result.put(Constant.RESP_PARAM_SIGN, "transSystem_Error_sign");
		return result;
	}
}
